//
//  DownLoad.h
//  quickLook
//
//  Created by J on 15/8/30.
//  Copyright (c) 2015年 JZJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface DownLoad : NSObject

//快看首页
//http://api.kuaikanmanhua.com/v1/comic_lists/1?limit=20&offset=0


//快看
+ (NSURLSessionDataTask*)getQuickLookDataWithPageNumber:(NSNumber*)number withBlock:(void(^)(id obj, NSError* error))block;



//发现 scroll广告

+ (NSURLSessionDataTask*)getFinderViewBannersData:(void(^)(id obj, NSError* error))block;



//发现页面

+ (NSURLSessionDataTask *)getFinderViewSrollsDataWithUrl:(NSString*)url andBlock:(void (^)(id obj, NSError *))block;





//导航栏搜索


+ (NSURLSessionDataTask *)getFinderNavigationBarDataSearchWithUrl:(NSString*)url andBlock:(void (^)(id obj, NSError *))block;




//toolbar comics关注

+ (NSURLSessionDataTask *)getToolBarLikeWithID:(NSNumber*)ID andBlock:(void (^)(id obj, NSError *error))block;


//tabbar数据

//热门评论


+ (NSURLSessionDataTask*)getLatestCommentWithPageNumber:(NSInteger)number andID:(NSNumber*)ID withBlock:(void(^)(id obj, NSError* error))block;



//最新评论



+ (NSURLSessionDataTask*)getHotCommentWithPageNumber:(NSInteger)number andID:(NSNumber*)ID withBlock:(void(^)(id obj, NSError* error))block;



//rightSearchController
+ (NSURLSessionDataTask*)getRightSearchData:(NSInteger)number andTag:(NSString*)tag withBlock:(void(^)(id obj, NSError* error))block;



//获取 collectionViewItem点击跳转

//v1/topics/133?sort=0



+ (NSURLSessionDataTask *)getThirdNavDataWithID:(NSNumber *) ID andorder:(NSInteger)order andBlock:(void (^)(id, NSError *))block ;





//scroll点击

+ (NSURLSessionDataTask *)getScrollViewInCellDataWithID:(NSInteger) ID andBlock:(void(^)(id obj, NSError* error))block;



//AdscrollView点击跳转解析

+ (NSURLSessionDataTask *)getADScrollViewSkipDataWithValue:(NSNumber*) value andBlock:(void(^)(id obj, NSError* error))block;

    
//findVC tableview的headerview 右边button点击跳转数据请求


+ (NSURLSessionDataTask *)getFindVCTableHeaderViewRightButtonDataWithActionParameter:(NSString*)action andoffset:(NSNumber*)offset andBlock:(void(^)(id obj, NSError* error))block;


//个人页 关注的专题
//http://api.kuaikanmanhua.com/v1/fav/topics?limit=20&offset=0

+ (NSURLSessionDataTask *)getIndividualViewControllerFavTopicsWithoffset:(NSNumber*)offset andBlock:(void(^)(id obj, NSError* error))block;



//个人页 收藏单篇
//http://api.kuaikanmanhua.com/v1/fav/comics?limit=20&offset=0

+ (NSURLSessionDataTask *)getIndividualViewControllerFavComicsWithoffset:(NSNumber*)offset andBlock:(void(^)(id obj, NSError* error))block;

//快看左侧关注
//http://api.kuaikanmanhua.com/v1/fav/timeline?since=0

+ (NSURLSessionDataTask *)getQuickLookFavItemWithsince:(NSNumber*)since andBlock:(void(^)(id obj, NSError* error))block;




//最新评论发送
//http://api.kuaikanmanhua.com/v1/comics/5171/comments   content     %E5%8F%8D%E5%8F%8D%E5%A4%8D%E5%A4%8D


+ (NSURLSessionDataTask *)sendLatestCommentWithID:(NSNumber*)ID andContent:(NSString*)content andBlock:(void(^)(id obj, NSError* error))block;


//获取介绍页信息


+ (NSURLSessionDataTask *)getIntroDataWithID:(NSNumber*)ID andBlock:(void(^)(id obj, NSError* error))block;



+ (void)netState;


//点赞 post请求 收藏Commics


+ (NSURLSessionDataTask *)getWetherDataWithID:(NSNumber*)ID andBlock:(void (^)(id obj, NSError *error))block;






+ (NSURLSessionDataTask *)postDataWithID:(NSNumber*)ID andBlock:(void (^)(id obj, NSError *error))block;



//delete请求

+ (NSURLSessionDataTask *)delteDataWithID:(NSNumber*)ID andBlock:(void (^)(id obj, NSError *error))block ;



//个人页单篇
//delete请求
+ (NSURLSessionDataTask *)delteComicsWithID:(NSNumber*)ID andBlock:(void (^)(id obj, NSError *error))block;


//昵称修改
+ (NSURLSessionDataTask *)changeNickNameandBlock:(void(^)(id obj, NSError* error))block;



@end
